package com.lmn.dubbo.consumer;

import com.lmn.dubbo.serviceapi.ServiceAPI;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConusmerController {

    @DubboReference
    private ServiceAPI serviceAPI;

    @GetMapping("index")
    public String hello() {
        return serviceAPI.helloworld("99999999");
    }

}
